package pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {


    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    private Integer sId;
    private String studentNum;
    private String studentName;

    public String getStudentGender() {
        return studentGender;
    }

    public void setStudentGender(String studentGender) {
        this.studentGender = studentGender;
    }

    public Integer getStudentAge() {
        return studentAge;
    }

    public void setStudentAge(Integer studentAge) {
        this.studentAge = studentAge;
    }

    public Integer getStudentFlag() {
        return studentFlag;
    }

    public void setStudentFlag(Integer studentFlag) {
        this.studentFlag = studentFlag;
    }

    public Student(Integer sId, String studentNum, String studentName, Date birthday, String studentGender, Integer studentAge, Integer studentFlag) {
        this.sId = sId;
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.birthday = birthday;
        this.studentGender = studentGender;
        this.studentAge = studentAge;
        this.studentFlag = studentFlag;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String studentGender;
    private Integer studentAge;
    private  Integer studentFlag;//0,存在，1，删除
    public Student(){}
}
